//
//  JGProductCell.m
//  WangYLottery
//
//  Created by JJetGu on 15/8/23.
//  Copyright (c) 2015年 JJetGu. All rights reserved.
//

#import "JGProductCell.h"
#import "JGProduct.h"

@interface JGProductCell ()

@property (weak, nonatomic) IBOutlet UIImageView *imageView;

@property (weak, nonatomic) IBOutlet UILabel *label;

@end

@implementation JGProductCell

- (void)awakeFromNib {
    _imageView.layer.cornerRadius = 10;
    _imageView.clipsToBounds = YES;
    
}

- (void)setProduct:(JGProduct *)product
{
    _product = product;
    _imageView.image = [UIImage imageNamed:product.icon];
    _label.text = product.title;
}

@end
